package io.gitee.thinkbungee.crud.mongo.annotation;

import org.springframework.data.mongodb.core.mapping.Document;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * 需要设置默认值 注解
 *
 * @author chenyichang
 * @date 2022/5/12
 */
@Document
@Target(value = {ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface InitValue {
    /**
     * 默认值
     */
    String value();
}
